package com.ruoyi.material.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物资信息对象 material_info
 * 
 * @author ruoyi
 * @date 2025-08-23
 */
public class MaterialInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物资id */
    private Long materialId;

    /** 物资编号 */
    @Excel(name = "物资编号")
    private String materialNo;

    /** 物资名称 */
    @Excel(name = "物资名称")
    private String materialName;

    /** 单位（如包、箱） */
    @Excel(name = "单位", readConverterExp = "如=包、箱")
    private String unit;

    /** 是否可用（1=是，0=否） */
    @Excel(name = "是否可用", readConverterExp = "1==是，0=否")
    private Integer isValid;

    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }

    public void setMaterialNo(String materialNo) 
    {
        this.materialNo = materialNo;
    }

    public String getMaterialNo() 
    {
        return materialNo;
    }

    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setIsValid(Integer isValid) 
    {
        this.isValid = isValid;
    }

    public Integer getIsValid() 
    {
        return isValid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("materialId", getMaterialId())
            .append("materialNo", getMaterialNo())
            .append("materialName", getMaterialName())
            .append("unit", getUnit())
            .append("isValid", getIsValid())
            .toString();
    }
}
